/* ==========================================================================
   Task Type Selector Styles
   ========================================================================== */
.task-type-container {
  margin-bottom: var(--space-md);
}

.task-type-selector {
  position: relative;
  width: 100%;
}

.selected-task-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background-color: var(--background-secondary);
  border: var(--standard-border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.selected-task-type:hover {
  background-color: var(--hover-color);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.task-type-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: var(--z-dropdown);
  background-color: var(--background-primary);
  border: var(--standard-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xs);
  max-height: 300px;
  overflow-y: auto;
}

.task-type-option {
  padding: var(--space-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.task-type-option:hover {
  background-color: var(--hover-color);
}

.task-type-option.selected {
  background-color: var(--background-selected);
}

.task-type-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-xs);
}

.task-type-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* Dark mode styles for task type selector */
.dark-mode .selected-task-type {
  background-color: var(--background-secondary);
}

.dark-mode .task-type-dropdown {
  background-color: var(--background-primary);
  border-color: var(--border-color);
}

.dark-mode .task-type-option:hover {
  background-color: var(--hover-color);
}

.dark-mode .task-type-option.selected {
  background-color: var(--background-selected);
}

/* Sidebar Task Type Selector  */
.sidebar-task-type {
  padding: var(--space-xs) 22px;
  background-color: var(--background-secondary);
  position: relative;
  z-index: 100;
  margin-bottom: var(--space-sm);
}

.sidebar-task-type .sidebar-title {
  margin-bottom: var(--space-xs);
  padding: var(--space-xs) 0px;
}

.sidebar-task-type-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.sidebar-task-type-selected:hover {
  background-color: var(--active-color);
  transition: all 0.2s var(--animation-curve);
  -webkit-transition: all 0.2s var(--animation-curve);
  -moz-transition: all 0.2s var(--animation-curve);
  -ms-transition: all 0.2s var(--animation-curve);
  -o-transition: all 0.2s var(--animation-curve);
  border-color: var(--color-primary);
}

.dark-mode .sidebar-task-type-selected:hover {
  background-color: var(--hover-color);
  transition: all 0.2s var(--animation-curve);
  -webkit-transition: all 0.2s var(--animation-curve);
  -moz-transition: all 0.2s var(--animation-curve);
  -ms-transition: all 0.2s var(--animation-curve);
  -o-transition: all 0.2s var(--animation-curve);
  border-color: var(--color-primary);
}

.sidebar-task-type-label {
  font-weight: var(--font-weight-medium);
}

.sidebar-task-type-dropdown {
  position: absolute;
  top: 100%;
  left: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-dropdown);
  background-color: var(--background-primary);
  border: 1px solid rgba(224, 224, 224, 0.3);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xs);
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-xs) 0 0 0;
}

.sidebar-task-type-option {
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.sidebar-task-type-option:last-child {
  border-bottom: none;
}

.sidebar-task-type-option:hover {
  background-color: var(--hover-color);
}

.sidebar-task-type-option.selected {
  background-color: var(--background-selected);
}

.sidebar-task-type-option-label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.sidebar-task-type-option-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.dark-mode .sidebar-task-type-selected {
  background-color: var(--background-tertiary);
  border-color: rgba(51, 51, 51, 0.8);
}

.dark-mode .sidebar-task-type-dropdown {
  background-color: var(--background-primary);
  border-color: rgba(51, 51, 51, 0.8);
}

.dark-mode .sidebar-task-type {
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.dark-mode .sidebar-task-type-option {
  border-bottom: 1px solid rgba(51, 51, 51, 0.6);
}

.dark-mode .sidebar-task-type-option:hover {
  background-color: var(--hover-color);
}

.dark-mode .sidebar-task-type-option.selected {
  background-color: var(--background-selected);
}

/* Dark mode styles for manage custom types button */
.dark-mode .manage-custom-types-button {
  background-color: var(--color-primary);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dark-mode .manage-custom-types-button:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.task-type-container {
  margin-bottom: var(--space-md);
  display: none;
}

.option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.option label {
  cursor: pointer;
}

/* Task Type Sections */
.task-type-section {
  margin-bottom: 8px;
}

.task-type-section-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Manage Custom Types Button */
.manage-custom-types-wrapper {
  padding: 0;
  border-top: 1px solid rgba(224, 224, 224, 0.2);
  margin-top: 0;
  width: 100%;
}

.manage-custom-types-button {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
  box-shadow: none;
  margin: 0;
}

.manage-custom-types-button:hover {
  background-color: var(--color-primary-dark);
  color: white;
  box-shadow: none;
  transform: none;
}
